home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / docs / makefile.dst < prev    next >
Makefile  |  1998-11-26  |  5KB  |  205 lines

  1. #
  2. # $Id: makefile,v 1.10 1996/06/27 21:08:08 drd Exp $
  3. #
  4. #
  5. # Makefile for GNUPLOT documentation
  6. #
  7. # Note that the top-level file for documentation is gnuplot.doc.
  8. # See README.
  9. #
  10. # To print manual:
  11. #    make gnuplot.dvi             (for latex)
  12. #    (print or view gnuplot.dvi)
  13. # OR
  14. #    make gnuplot.nroff           (for nroff)
  15. #    (print or view gnuplot.nroff)
  16. #   or
  17. #    make "TROFF=itroff" troff    (for troff; use your troff here)
  18. #
  19. # $Id: makefile,v 1.10 1996/06/27 21:08:08 drd Exp $
  20.  
  21. # usually overridden by ../Makefile
  22. HELPDEST = /usr/local/lib
  23.  
  24. # substitute your troff command (and any flags) for this one
  25. TROFF=troff
  26.  
  27. # substitute cp if you do not have the install program
  28. INSTALL=install
  29.  
  30. # substitute your DVI to PostScript conversion program here
  31. DVIPS=dvips
  32.  
  33. # Compiler flags
  34. # -DSYSV if att sys V
  35. # -DMSDOS if MSDOS PS
  36. # -traditional -g -O if gcc (set 'CC = gcc')
  37. # no extra flags for BSD
  38. # HBB: this gets called from the toplevel Makefile, and gets passed some CFLAGS,
  39. #   so I changed this to something completely different:
  40. DOC_CFLAGS = $(CFLAGS) -s -I../ -I../term/
  41. CC = gcc
  42.  
  43. # Default information
  44. help:
  45.     @echo "Please do a 'make <TARGET>' where <TARGET> is one of" \
  46.                 "the following:"
  47.     @echo
  48.     @echo "check        check the gnuplot.doc file"
  49.     @echo "clean        remove all derived files"
  50.     @echo "dvi          DVI files (gnuplot.dvi gpcard.dvi)"
  51.     @echo "gih          Unix and MSDOS help file (gnuplot.gih)"
  52.     @echo "help         make help"
  53.     @echo "hlp          VMS help file (gnuplot.hlp)"
  54.     @echo "html         HyperText Markup language (gnuplot.html)"
  55.     @echo "info         Info documentation (gnuplot.info)"
  56.     @echo "install-unix Unix and MSDOS install"
  57.     @echo "install-vms  VMS install"
  58.     @echo "nroff        nroff documentation (gnuplot.nroff)"
  59.     @echo "ps           PostScript files (gnuplot.ps gpcard.ps)"
  60.     @echo "tex          LaTeX documentation (gnuplot.tex)"
  61.     @echo "troff        troff documentation"
  62.     @echo "tutorial     LaTeX tutorial (latextut/tutorial.dvi)"
  63.     @echo
  64.     @echo "If you are not familiar with makefiles or just want" \
  65.                 "to know what"
  66.     @echo "'make <TARGET>' would do without actually doing" \
  67.                 "anything, then type"
  68.     @echo "        'make -n <TARGET>'"
  69.     @echo
  70.  
  71. # default is what is needed for interactive gnuplot
  72. default: gnuplot.hlp gnuplot.gih
  73.  
  74.  
  75. # the converters
  76.  
  77. doc2html : doc2html.c termdoc.c xref.c allterm.h
  78.     $(CC) $(DOC_CFLAGS) -o doc2html doc2html.c termdoc.c xref.c
  79.  
  80. doc2ms: doc2ms.c termdoc.c allterm.h
  81.     $(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o doc2ms doc2ms.c termdoc.c
  82.  
  83. doc2tex: doc2tex.c termdoc.c allterm.h 
  84.     $(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o doc2tex doc2tex.c termdoc.c
  85.  
  86. doc2hlp: doc2hlp.c termdoc.c
  87.     $(CC) $(DOC_CFLAGS) -o doc2hlp doc2hlp.c termdoc.c
  88.  
  89. doc2gih: doc2gih.c termdoc.c
  90.     $(CC) $(DOC_CFLAGS) -o doc2gih doc2gih.c termdoc.c
  91.  
  92. checkdoc: checkdoc.c termdoc.c allterm.h
  93.     $(CC) $(DOC_CFLAGS) -DALL_TERM_DOC -o checkdoc checkdoc.c termdoc.c
  94.  
  95.  
  96. allterm.h:
  97.     @echo Hmm - need to concatenate all .trm files into allterm.h
  98.     @echo should have been done by main makefile
  99.  
  100. ### [tn]roff documentation
  101. troff: gnuplot.ms titlepag.ms
  102.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  103.  
  104. nroff: gnuplot.nroff
  105.  
  106. gnuplot.nroff: gnuplot.ms titlepag.ms
  107.     tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
  108.  
  109.  
  110.  
  111. ms: gnuplot.ms
  112.  
  113. gnuplot.ms: doc2ms gnuplot.doc
  114.     ./doc2ms gnuplot.doc gnuplot.ms
  115.  
  116.  
  117.  
  118. html: gnuplot.html
  119.  
  120. gnuplot.html : doc2html gnuplot.doc allterm.h
  121.     ./doc2html gnuplot.doc gnuplot.html
  122.  
  123.  
  124. ### LaTeX documentation
  125.  
  126. tex: gnuplot.tex
  127.  
  128. gnuplot.tex: doc2tex gnuplot.doc
  129.     ./doc2tex gnuplot.doc gnuplot.tex
  130.  
  131.  
  132. # this is how to make DVI files
  133. dvi: gnuplot.dvi gpcard.dvi
  134.  
  135. gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  136.     latex gnuplot
  137.     latex gnuplot
  138.  
  139. gpcard.dvi: gpcard.tex
  140.     tex gpcard
  141.  
  142. # this is how to make PostScript files
  143. # if pslatex has been installed, add "times" to titlepage.tex
  144. ps: gnuplot.ps gpcard.ps
  145.  
  146. gnuplot.ps: gnuplot.dvi
  147.     $(DVIPS) gnuplot
  148.  
  149. gpcard.ps: gpcard.dvi
  150.     $(DVIPS) gpcard
  151.  
  152.  
  153. # this is how to make gnuplot.hlp
  154.  
  155. hlp: gnuplot.hlp
  156.  
  157. gnuplot.hlp: doc2hlp gnuplot.doc
  158.     ./doc2hlp gnuplot.doc gnuplot.hlp
  159.  
  160.  
  161. # this is how to make gnuplot.gih
  162. gih: gnuplot.gih
  163.  
  164. gnuplot.gih: doc2gih gnuplot.doc
  165.     ./doc2gih gnuplot.doc gnuplot.gih
  166.  
  167.  
  168. # this is how to make Info documentation
  169. info: gnuplot.info
  170.  
  171. gnuplot.info: gnuplot.doc
  172.     perl doc2texi.pl gnuplot.doc > gpltinfo.tex
  173.     makeinfo +fill-column 80 gpltinfo.tex
  174.     rm -f gpltinfo.tex
  175.  
  176. tutorial: latextut/tutorial.tex
  177.     ( cd latextut; $(MAKE) )
  178.  
  179. # this is how to check the gnuplot.doc file
  180. check: checkdoc gnuplot.doc
  181.     ./checkdoc < gnuplot.doc
  182.  
  183.  
  184. # For Unix and MSDOS only
  185. install-unix: gnuplot.gih
  186.     $(INSTALL) gnuplot.gih $(HELPDEST)
  187.  
  188. # for VMS only
  189. install-vms: gnuplot.hlp
  190.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  191.  
  192. # remove all derived files
  193. clean:
  194.     rm -f doc2ms gnuplot.nroff gnuplot.ms \
  195.               allterm.h \
  196.               doc2html gnuplot.html \
  197.               doc2tex gnuplot.tex gnuplot.dvi \
  198.               gnuplot.aux gnuplot.log gnuplot.toc \
  199.               gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
  200.               doc2hlp gnuplot.hlp \
  201.               doc2gih gnuplot.gih \
  202.               checkdoc *~ *.o core a.out \
  203.               gnuplot.info* gpltinfo.tex
  204.     ( cd latextut; $(MAKE) clean )
  205.